import 'package:json_annotation/json_annotation.dart';

part 'token_info.g.dart';

@JsonSerializable()
class TokenInfo {
  TokenInfo(this.xToken, this.expire);

  @JsonKey(name: 'X-Token')
  String xToken;
  int expire;

  factory TokenInfo.fromJson(Map<String, dynamic> json) => _$TokenInfoFromJson(json);
  Map<String, dynamic> toJson() => _$TokenInfoToJson(this);
}
